export const queryCols = [{
	type: "zInput",
	key: "module",
	tag: "",
	cfg: {
		key: 'api',
		placeholder: "请输入",
		title: "",
		mandatory: false,
	},
	label: "模块:",
	col: ""
}, {
	type: "input",
	key: "api",
	tag: "",
	cfg: {
		type: "text",
		placeholder: "请输入",
		mandatory: false,
		title: ""
	},
	label: "接口:",
	col: "col-md-6"
}];

export const tableCols = [{
	title: "模块",
	$data: "module",
	sort: true,
	filter: true,
	show: 2
}, {
	title: "接口",
	$data: "api",
	sort: false,
	filter: false,
	show: 2
}, {
	title: "执行语句",
	$data: "hml",
	sort: false,
	filter: false,
	show: 2
}, {
	title: "权限验证",
	$data: "authCheck",
	sort: false,
	filter: false,
	show: 1
}, {
	title: "接口备注",
	$data: "remark",
	sort: false,
	filter: false,
	show: 1
}, {
	title: "状态",
	$data: "state",
	sort: false,
	filter: false,
	show: 1
}, {
	title: "模块名称",
	$data: "moduleName",
	sort: false,
	filter: false,
	show: 1
}, {
	title: "接口名称",
	$data: "apiName",
	sort: false,
	filter: false,
	show: 1
}, {
	title: "接口日志输出",
	$data: "log4j",
	sort: false,
	filter: false,
	show: 1
}, {
	title: "用户操作日志",
	$data: "logOperation",
	sort: false,
	filter: false,
	show: 1
}, {
	title: "最后修改时间",
	$data: "updTime",
	sort: false,
	filter: false,
	show: 1
}];

export const viewCols = [{
	label: '接口ID:',
	type: 'text',
	$data: 'apiId',
	col: 'col-md-6',
	tag: ''
}, {
	label: '模块:',
	type: 'text',
	$data: 'module',
	col: 'col-md-6',
	tag: ''
}, {
	label: '接口:',
	type: 'text',
	$data: 'api',
	col: 'col-md-6',
	tag: ''
}, {
	label: '执行语句:',
	type: 'text',
	$data: 'hml',
	col: 'col-md-12',
	tag: ''
}, {
	label: '权限验证:',
	type: 'text',
	$data: 'authCheck',
	col: 'col-md-6',
	tag: ''
}, {
	label: '接口备注:',
	type: 'text',
	$data: 'remark',
	col: 'col-md-12',
	tag: ''
}, {
	label: '状态:',
	type: 'text',
	$data: 'state',
	col: 'col-md-6',
	tag: ''
}, {
	label: '模块名称:',
	type: 'text',
	$data: 'moduleName',
	col: 'col-md-6',
	tag: ''
}, {
	label: '接口名称:',
	type: 'text',
	$data: 'apiName',
	col: 'col-md-6',
	tag: ''
}, {
	label: '接口日志输出:',
	type: 'text',
	$data: 'log4j',
	col: 'col-md-6',
	tag: ''
}, {
	label: '用户操作日志:',
	type: 'text',
	$data: 'logOperation',
	col: 'col-md-6',
	tag: ''
}, {
	label: '最后修改时间:',
	type: 'text',
	$data: 'updTime',
	col: 'col-md-6',
	tag: ''
}];

export const updateBinds = [{
	type: "zInput",
	key: "module",
	tag: "",
	cfg: {
		key: 'api',
		placeholder: "请输入",
		title: "",
		mandatory: true,
	},
	label: "模块:",
	col: "col-md-6"
}, {
	type: "input",
	key: "api",
	tag: "",
	cfg: {
		type: "text",
		placeholder: "请输入",
		mandatory: true,
		title: ""
	},
	label: "接口:",
	col: "col-md-6"
}, {
	type: "xTextarea",
	key: "hml",
	tag: "",
	cfg: {

		mandatory: true,
		placeholder: "请输入"
	},
	label: "执行语句:",
	col: "col-md-12"
}, {
	type: "input",
	key: "authCheck",
	tag: "",
	cfg: {
		type: "switch",
		data: '无需验证,需要验证',
		mandatory: false,
		placeholder: "",
		title: ""
	},
	label: "权限验证:",
	col: "col-md-6"
}, {
	type: "xTextarea",
	key: "remark",
	tag: "",
	cfg: {

		mandatory: true,
		placeholder: ""
	},
	label: "接口备注:",
	col: "col-md-12"
}, {
	type: "input",
	key: "state",
	tag: "",
	cfg: {
		type: "switch",
		data: '停用,启用',
		mandatory: true,
		placeholder: "",
		title: ""
	},
	label: "状态:",
	col: "col-md-6"
}, {
	type: "zInput",
	key: "moduleName",
	tag: "",
	cfg: {

		placeholder: "请输入",
		title: "仅用于记录用户操作日志",
		mandatory: false,
	},
	label: "模块名称:",
	col: "col-md-6"
}, {
	type: "input",
	key: "apiName",
	tag: "",
	cfg: {
		type: "text",
		placeholder: "请输入",
		mandatory: false,
		title: "仅用于记录用户操作日志"
	},
	label: "接口名称:",
	col: "col-md-6"
}, {
	type: "input",
	key: "log4j",
	tag: "",
	cfg: {
		type: "switch",
		data: '不输出,输出',
		mandatory: false,
		placeholder: "",
		title: ""
	},
	label: "接口日志输出:",
	col: "col-md-6"
}, {
	type: "input",
	key: "logOperation",
	tag: "",
	cfg: {
		type: "switch",
		data: '不记录,记录',
		mandatory: false,
		placeholder: "",
		title: ""
	},
	label: "用户操作日志:",
	col: "col-md-6"
}];